package com.trust.pams.model.es;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Map;

@Document(indexName = "es_pams", type = "pams_client", shards = 1, replicas = 0)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ClientEsSearch {

    @Field(type= FieldType.Keyword)
    private String clientName;

    @Field(type= FieldType.Object)
    private Map clientBasic;

    @Field(type= FieldType.Object)
    private Map clientDetails;

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public Map getClientBasic() {
        return clientBasic;
    }

    public void setClientBasic(Map clientBasic) {
        this.clientBasic = clientBasic;
    }

    public Map getClientDetails() {
        return clientDetails;
    }

    public void setClientDetails(Map clientDetails) {
        this.clientDetails = clientDetails;
    }
}
